package xin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author young
 * @since 2023年10月09日
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_auth_permission")
@ApiModel(value = "TAuthPermission对象", description = "")
public class TAuthPermission implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("name")
    private String name;

    @TableField("url")
    private String url;

    @TableField("descs")
    private String descs;

    @TableField(exist = false)
    private String parentName;

    @TableField("sn")
    private String sn;

    @ApiModelProperty("父级权限的id")
    @TableField("parent_id")
    private Long parentId;

    @TableField(exist = false)
    private List<TAuthPermission> children;


}
